import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //获取页面列表数据
    getPageList: {
        url: 'http://mock.hzdingmao.com/mock/205/api/v1/data/fun_template/fun_template_list',
        method: 'get'
    },
    //删除功能页面
    delFuncPage: {
        url: 'http://mock.hzdingmao.com/mock/205/api/v1/data/fun_template/fun_template_delete',
        method: 'delete'
    },
    //新增功能页面
    addFunPage: {
        url: 'http://mock.hzdingmao.com/mock/205/api/v1/data/fun_template/fun_template_add',
        method: 'post'
    },
    //编辑功能页面
    editFunPage: {
        url: 'http://mock.hzdingmao.com/mock/205/api/v1/data/fun_template/fun_template_edit',
        method: 'put'
    },
}

export default openBuildService(settings)